package com.itheima.day02_datatype;

public class Demo08_operator {
    public static void main(String[] args) {
        int a = 10;
        int b = 5;
        boolean rs = a > b;
        System.out.println("rs = " + rs);

        System.out.println("(a >= b) = " + (a >= b));
        System.out.println("(2 >= 2) = " + (2 >= 2));
        System.out.println("(a < b) = " + (a < b));
        System.out.println("(a <= b) = " + (a <= b));
        System.out.println("(2 <= 2) = " + (2 <= 2));
        System.out.println("(a == b) = " + (a == b));
        System.out.println("(5 == 5) = " + (5 == 5));
        System.out.println("(a != b) = " + (a != b));
        System.out.println("(10 != 10) = " + (10 != 10));
        System.out.println("(false ^ true ^ false) = " + (false ^ true ^ false));

        // 5、&& 左边为false，右边不执行。
        int i = 10;
        int j = 20;
        // System.out.println(i > 100 && ++j > 99);
        System.out.println(i > 100 & ++j > 99);
        System.out.println(j);
    }
}
